package simple13.template;

import simple13.fruit.Fruit;

import java.util.List;

public class CartShopping extends ShoppingCart {
    public CartShopping(List<Fruit> products) {
        super(products);
    }

    @Override
    protected void pay(int money) {
        System.out.println("会员卡结算,'立减10',金额"+(money-10)+",增加积分"+(10*money));
    }
}
